Skip to content

feat(plugin): show compact live council badges in PreToolUse statusMessage#1415

Merged
JeremyDev87 merged 1 commit into
masterfrom
taskmaestro/1775487798/pane-4
Apr 6, 2026
Merged

feat(plugin): show compact live council badges in PreToolUse statusMessage#1415
JeremyDev87 merged 1 commit into
masterfrom
taskmaestro/1775487798/pane-4

Conversation

@JeremyDev87

Copy link
Copy Markdown
Owner

Summary

  • Add council_badge.py — pure formatter that builds compact badge strings from HUD state
  • Integrate into pre-tool-use.py statusMessage alongside existing agent status and TDD indicators
  • Council badges only appear when councilActive=true in HUD state

Closes #1367

Badge Format

[◮ secu] [🧪 auth] [⚠1]    # agent eye + short name, stage icon + focus, blocker count
[⊙ test] [🔍 retry] [✓]    # zero blockers shows checkmark

Files Changed

File Change
hooks/lib/council_badge.py New — pure badge formatter + HUD state reader
hooks/pre-tool-use.py Integration — append badge to statusMessage
tests/test_council_badge.py 21 new tests (formatter, shortener, integration)
tests/test_pre_tool_use.py 2 new tests (badge active/inactive)

Test plan

  • 21 unit tests for council_badge.py (pure formatter + HUD state reader)
  • 2 integration tests for pre-tool-use.py (badge present/absent)
  • All 787 plugin tests passing
  • All 6157 MCP server tests passing
  • Build successful

…ssage (#1367)

Add council_badge.py formatter that reads HUD state and builds
compact badge strings like [◮ secu] [🧪 auth] [⚠1] during
active council sessions. Integrated into pre-tool-use.py so
badges appear in the spinner statusMessage alongside existing
agent status and TDD indicators.
@vercel

vercel Bot commented Apr 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Apr 6, 2026 4:55pm

@JeremyDev87 JeremyDev87 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: APPROVE

CI Status: PASS (29/29, including e2e-plugin-docker and e2e-plugin-hooks)

Spec Compliance (#1367)

All 3 acceptance criteria met:

  • ✅ PreToolUse emits compact council badges during active workflow requests via statusMessage
  • ✅ Badges reflect current actor (eye + short name), focus (stage icon + label), and blocker status
  • ✅ Single-line bracket format fits spinner/statusMessage constraints: [◮ secu] [🧪 auth] [⚠1]

Code Quality

  • Clean pure/impure separation: shorten_agent_name and format_council_badge are pure; build_council_badge reads state
  • Reuses agent_status._load_agent_visual for eye char lookup — no duplication
  • Focus label truncated at 12 chars; stage-to-icon mapping with default fallback
  • Council badge only appears when councilActive=true — no noise on unrelated tool calls
  • Silent exception handling follows existing hook resilience patterns

Test Coverage: 23 new tests

Unit (21):

  • shorten_agent_name: 7 tests — suffix removal, multi-word, single word, empty
  • format_council_badge: 8 tests — all fields, no focus, blockers, truncation, stage icons, single-line
  • build_council_badge: 6 tests — inactive, no agent, missing file, active with eye, no focus, fallback eye

Integration (2):

  • Badge present in statusMessage when council active (with eye, short name, focus)
  • No badge when council inactive

Issues Found: 0

No Critical, High, Medium, or Low issues found.

Recommendation: APPROVE

@JeremyDev87 JeremyDev87 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Review complete - review agent approved. Issues: 0.

@JeremyDev87 JeremyDev87 added feat plugin packages/claude-code-plugin P1 Priority 1: First Impression labels Apr 6, 2026
@JeremyDev87 JeremyDev87 self-assigned this Apr 6, 2026
@JeremyDev87 JeremyDev87 merged commit 37f618c into master Apr 6, 2026
29 checks passed
@JeremyDev87 JeremyDev87 deleted the taskmaestro/1775487798/pane-4 branch April 6, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat P1 Priority 1: First Impression plugin packages/claude-code-plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(plugin): show compact live council badges from PreToolUse during request execution

1 participant